<!DOCTYPE html>
<html lang="en">

<head>
    <title>car</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="" />


    <link rel="stylesheet" href="css/bootstrap.css">
    <link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
    <link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css"><!-- 图标样式 -->
    <link rel="stylesheet" type="text/css" href="./css/home.css">
    <link href="css/owl.carousel.css" rel="stylesheet" type="text/css" media="all">
    <link rel="stylesheet" type="text/css" href="./css/car.css">
    <link rel="stylesheet" href="css/layer.css" type="text/css" media="all">

    <script src="js/jquery-2.2.3.min.js"></script>
    <script src="js/jquery-scrolltofixed-min.js" type="text/javascript"></script><!-- 导航栏 -->
    <script src="js/bootstrap.js"></script>
    <script type="text/javascript" src="js/move-top.js"></script>
    <script type="text/javascript" src="js/easing.js"></script>
    <script src="js/jquery.menu-aim.js"></script>
    <script src="js/custom.js"></script>
    <script src="js/main.js"></script><!-- 导航栏 -->
    <script src="js/del.js"></script>



</head>

<body>


<div id="header"></div>


    <!-- products -->
    <div class="products">
        <div class="container">
            <div class="col-md-12 product-w3ls-right">
                <!-- breadcrumbs -->
                <ol class="breadcrumb breadcrumb1">
                    <li><a href="home.html">Home</a></li>
                    <li class="active">购物车</li>
                </ol>
                <div class="clearfix"> </div>
                <!-- //breadcrumbs -->

                <div class="shopping-car-container">
                    <div class="car-headers-menu">
                        <div class="row">
                            <div class="col-md-3 col-sm-2 col-xs-2 car-menu">商品信息</div>
                            <div class="col-md-3 col-sm-2 col-xs-2 car-menu">商品类型</div>
                            <div class="col-md-1 col-sm-2 col-xs-2 car-menu">单价</div>
                            <div class="col-md-2 col-sm-2 col-xs-2 car-menu">数量</div>
                            <div class="col-md-1 col-sm-2 col-xs-2 car-menu">金额</div>
                            <div class="col-md-2 col-sm-2 col-xs-2 car-menu">操作</div>
                        </div>
                    </div>
                    <div class="goods-content">
                        <div class="goods-item" v-for="(car,index) in carList">
                            <div class="panel panel-default">
                                <div class="panel-body">
                                    <div class="col-md-3 col-sm-2 col-xs-2 car-goods-info goods-image-column">
                                        <a href="javascript:;" @click="toDetail(car.goodsId)">
                                            <img class="goods-image" :src="car.goodsPic" />
                                        </a>
                                    </div>
                                    <div class="col-md-3 col-sm-2 col-xs-2 car-goods-info goods-params">
                                        <p class="goods-info">
                                            {{car.goodsTitle}}
                                        </p>
                                    </div>
                                    <div class="col-md-1 col-sm-2 col-xs-2 car-goods-info goods-price">
                                        <span class="goods-price single-price">￥{{car.goodsPrice}}</span></div>
                                    <div class="col-md-2 col-sm-2 col-xs-2 car-goods-info goods-counts">
                                        <div class="input-group">
                                            <div class="input-group-btn">
                                                <button type="button"
                                                    class="btn btn-default car-decrease" @click="addOrSub(0,index)">-</button>
                                            </div>
                                            <input type="text" disabled class="goods-num form-control goods-count"
                                                v-model="car.goodNum">
                                            <div class="input-group-btn">
                                                <button type="button"
                                                    class="btn btn-default car-add" @click="addOrSub(1,index)">+</button>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-1 col-sm-2 col-xs-2 car-goods-info goods-money-count">
                                        <span class="goods-totalMoney single-total">￥{{car.goodsPrice*car.goodNum}}</span></div>
                                    <div class="col-md-2 col-sm-2 col-xs-2 car-goods-info goods-operate">
                                        <a @click="settleAccounts(car.id)" href="javascript:;" class="btn btn-primary">结算</a>
                                        <a @click="deleteCar(car.id)" href="javascript:;"
                                            class="btn btn-danger item-delete">删除</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="goods-btns text-right">
                            <input disabled class="btn btn-default goodsList-totalMoney" v-model="totalMoney">
                            <a class="btn btn-primary" @click="settleAccountsAll" href="javascript:;">全部结算</a>
                        </div>
                    </div>
                    <!--删除确认弹框-->
                    <div class="modal fade  bs-example-modal-sm" tabindex="-1" role="dialog" id="deleteItemTip"
                        aria-labelledby="gridSystemModalLabel">
                        <div class="modal-dialog modal-sm" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                            aria-hidden="true">&times;</span></button>
                                    <h4 class="modal-title" id="gridSystemModalLabel">提示</h4>
                                </div>
                                <div class="modal-body">
                                    确认删除此商品？
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-primary deleteSure">确定</button>
                                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- //add-products -->
            </div>
            <div class="clearfix"> </div>
        </div>
    </div>
    <!--//products-->

    <!--最热商品-->
    <div id="hot">

    </div>

    <div class="copy-right">
        <div class="container">
            <p>Copyright &copy; 2020.XB All rights reserved.<a target="_blank" href="#"></a></p>
        </div>
    </div>

    <script src="js/jquery-cookie-1.4.1.js"></script>
    <script src="js/vue-2.6.11.js"></script>
    <script src="js/axios-0.19.2.min.js"></script>
    <script src="js/layer.js"></script>
    <script src='xbjs/car.js'></script>
    <script>
        $(function () {
            $('#header').load("header.html");
            $('#hot').load("hot.html");
        })
    </script>
</body>

</html>